export default function login(http) {
  return {
    login: (data) => {
      return http.post('/login', data, {
        auth: false,
      })
    },
    register: (data) => {
      return http.post('/register', data, {
        auth: false,
      })
    },
    geetest: (data) => {
      return http.post('/captcha/validate', data, {
        auth: false,
      })
    },
    getPermMenus: () => {
      return http.get('/menu/perm')
    },
  }
}
